From: Marina Zhurakhinskaya Date: Tue, 8 Feb 2011 07:06:42 +0000 (-0500) Subject: Add mouseButtonClicked argument to the callback for St.Button 'clicked' signal in... X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9101 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9ec2d5d6092b38e115737663c679fae5debcf1e2;p=gnome-shell.git Add mouseButtonClicked argument to the callback for St.Button 'clicked' signal in Notification St.Button 'clicked' signal now has two arguments, and because we are also passing an action id as an argument to the _onActionInvoked() callback, we need to have the number of the signal arguments reflected accurately in the function arguments. https://bugzilla.gnome.org/show_bug.cgi?id=641809 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 47b8294bd..db9913c5b 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -712,7 +712,7 @@ Notification.prototype = { return false; }, - _onActionInvoked: function(actor, id) { + _onActionInvoked: function(actor, mouseButtonClicked, id) { this.emit('action-invoked', id); if (!this.resident) { // We don't hide a resident notification when the user invokes one of its actions,